package com.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pay_return")
@ApiModel(value="PayReturn对象", description="")
public class PayReturn implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "退款表自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "对应的订单号")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty(value = "原订单金额")
    @TableField("order_amount")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "退款金额")
    @TableField("refund")
    private BigDecimal refund;

    @ApiModelProperty(value = "退款原因(自填)")
    @TableField("	reason")
    private String 	reason;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
